package cn.hiapi.core.basic.response;

/**
 * @author AdinZ
 * @date 2024/1/12 11:04
 */

public enum DefaultResponseCode implements BasicResponseCode {
    SUCCESS(200, "请求成功"),
    ERROR(300, "参数错误");

    private final String remark;
    private final int code;

    DefaultResponseCode(int code, String remark) {
        this.code = code;
        this.remark = remark;
    }


    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getRemark() {
        return this.remark;
    }
}
